package Demo7;

import java.io.*;

public class InputStreamReaderTest1 {
    public static void main(String[] args) {
      //字节流转换成字符流
        try {
            InputStream is = new FileInputStream("f:/TEST/c.txt");
            Reader reader =new InputStreamReader(is);
            BufferedReader br = new BufferedReader(reader);
            String s;
            while ((s = br.readLine())!=null){
                System.out.println(s);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }finally {

        }
    }
}
